<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>打字机效果</title>
    <link rel="stylesheet" href="./index.css">
</head>
<body>
	<p class='remark'>Chrome浏览器点击屏幕有音效哦！</p>
    <p class="line animation">
        Great minds have purpose, others have wishes.
    </p>
    
    <script>
        const audio = new Audio();
        audio.src = './audio.mp3';
        setTimeout(()=>{
            setInterval((()=>{              
                audio.play();
                return  ()=>{audio.play()};
            })(),10000)
        },1000);
       
    </script>
</body>
</html>